#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE Hello
#include <boost/test/unit_test.hpp>
#include "timeservice.h"
 
int add(int i, int j)
{
    return i + j;
}
 
BOOST_AUTO_TEST_CASE(universeInOrder)
{
    BOOST_CHECK(add(2, 2) == 4);
}

BOOST_AUTO_TEST_CASE(universeInOrder2)
{
	TimeService master, client1, client2;
	master.master();
	client2.client();
	sleep(20);
    BOOST_CHECK(add(2, 2) == 4);
}
